x86/HVM: __hvm_copy() should not write to p2m_ioreq_server pages
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:27:59 +0000 (11:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:27:59 +0000 (11:27 +0100)
commitd8b2418573fb0c3f2a192620254d08826807d58a
tree3bfaaa076b6a8c792ee19246c61178392d842779
parentbf608fd2f03832981ea6502c476574e5404b4314
x86/HVM: __hvm_copy() should not write to p2m_ioreq_server pages

Commit 3bdec530a5 ("x86/HVM: split page straddling emulated accesses in
more cases") introduced a hvm_copy_to_guest_linear() attempt before
falling back to hvmemul_linear_mmio_write(). This is wrong for the
p2m_ioreq_server special case. That change widened a pre-existing issue
though: Other writes to such pages also need to be failed (or forced
through emulation), in particular hypercall buffer writes.

Reported-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: d7bff2bc003cd5fd8c618b70c62b8fcfd9cd187e
master date: 2018-11-15 16:42:25 +0100
xen/arch/x86/hvm/hvm.c